use super::model;
use super::status;

fn is_working(user: model) {
    init_user();
    self::init_user();
    // match user.status {
    //     status::online => String::from("在线"),
    //     status::offline => String::from("离线"),
    // }
}

pub fn init_user() -> model {
    let user = model {
        name: String::from("hboot"),
        age: 34,
        status: status::online,
    };
    user
}
